package cn.liit.weixin.custommsg.model;

/**
 * 客服消息(卡劵消息)
 * @author zhangboqi
 *
 */
public class WxcardMsg extends BaseMsg{

	private Wxcard wxcard;


	public WxcardMsg(String touser, Wxcard wxcard) {
		super(touser, MSGTYPE_WXCARD);
		this.wxcard = wxcard;
	}

	public Wxcard getWxcard() {
		return wxcard;
	}

	public void setWxcard(Wxcard wxcard) {
		this.wxcard = wxcard;
	}
	/**
	 * 卡劵
	 * @author zhangboqi
	 *
	 */
	public static class CardExt {
		private String code;
		private String openid;
		private String timestamp;
		private String signature;
		
		public CardExt(String code, String openid, String timestamp,
				String signature) {
			super();
			this.code = code;
			this.openid = openid;
			this.timestamp = timestamp;
			this.signature = signature;
		}
		public String getCode() {
			return code;
		}
		public void setCode(String code) {
			this.code = code;
		}
		public String getOpenid() {
			return openid;
		}
		public void setOpenid(String openid) {
			this.openid = openid;
		}
		public String getTimestamp() {
			return timestamp;
		}
		public void setTimestamp(String timestamp) {
			this.timestamp = timestamp;
		}
		public String getSignature() {
			return signature;
		}
		public void setSignature(String signature) {
			this.signature = signature;
		}
	}
	/**
	 * 卡劵
	 * @author zhangboqi
	 */
	public static class Wxcard {

		private String card_id;
		private CardExt card_ext;
		
		public Wxcard(String card_id, CardExt card_ext) {
			super();
			this.card_id = card_id;
			this.card_ext = card_ext;
		}

		public String getCard_id() {
			return card_id;
		}

		public void setCard_id(String card_id) {
			this.card_id = card_id;
		}

		public CardExt getCard_ext() {
			return card_ext;
		}

		public void setCard_ext(CardExt card_ext) {
			this.card_ext = card_ext;
		}
		
	}
	
}
